#!/usr/bin/python
# -*- coding: UTF-8 -*-
"""
@author:jidi
@file:session.py
@time:2022/08/08
"""
from service.wework.model.calendar_app import CalendarApp
from service.wework.model.wework import WeWork
from service.wework.utils.log import log


class Session:
    _access_token = None

    def __init__(self, wework: WeWork, app: CalendarApp):
        self._access_token = self.refresh_token(wework, app)
        log.debug(f"token = {self.get_token()}")

    def refresh_token(self, wework: WeWork, app: CalendarApp):
        ...

    def get_token(self):
        return self._access_token
